package com.stadium.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @program: smartgame-rugby
 * @description: 注册球员vo
 * @author: firstSeven
 * @create: 2020/04/13
 */
@Data
@ApiModel(value = "球员注册vo")
public class RegisterPlayerVo {
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "id")
    private String id;
    @ApiModelProperty(value = "球队id",required = true)
    private String teamId;
    @NotNull(message = "年龄不能为空")
    @ApiModelProperty(value = "年龄",required = true)
    private Integer age;
    @NotNull(message = "身高不能为空")
    @ApiModelProperty(value = "身高厘米",required = true)
    private Double stature;
    @NotNull(message = "体重不能为空")
    @ApiModelProperty(value = "体重kg",required = true)
    private Double weight;
    @NotBlank(message = "位置名称不能为空")
    @Length(min = 0, max = 20)
    @ApiModelProperty(value = "位置名称 1:控球后卫 2:得分后卫 3:小前锋 4:大前锋 5:中锋 6:未知",required = true)
    private String position;
    @NotBlank(message = "位置code不能为空")
    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "位置code 1:控球后卫 2:得分后卫 3:小前锋 4:大前锋 5:中锋 6:未知",required = true)
    private String positionCode;
    @NotBlank(message = "球衣号码不能为空")
    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "球衣号码",required = true)
    private String uniformNumber;
    @NotBlank(message = "档案照片不能为空")
    @ApiModelProperty(value = "档案照片")
    private String profilePhoto;
    @ApiModelProperty(value = "球员属地")
    private String adress;
    @ApiModelProperty(value = "球员属地code",required = true)
    private String adressCode;
    @ApiModelProperty(value = "鞋号",required = true)
    private String footwearSize;
    @ApiModelProperty(value = "用户对象",required = true)
    private RegisterVo registerVo;
    @NotBlank(message = "opId不能为空")
    @ApiModelProperty(value = "openId", example = "0", required = true)
    private String openId;
}
